﻿using Coolzon.UI.Common.Widgets;
using Coolzon.UI.Common.Widgets.Converters;
using Coolzon.UI.Common.Widgets.Properties;
using Coolzon.UI.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coolzon.UI.Common
{
    public class CommonPartLibrary : PartLibrary
    {
        public override void Install()
        {
            RegisterPart("DataWidget", typeof(DataWidget));
            RegisterPart("DataTable", typeof(DataTable));

            RegisterProperty(typeof(List<DataTableColumn>), typeof(DataTableColumnsConverter), null);
            RegisterProperty(typeof(DataSource), typeof(DataSourceConverter), null);
        }
    }
}
